<%-- 
    Document   : reminders
    Created on : Mar 5, 2011, 3:31:39 PM
    Author     : Javier
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Reminders</title>
        <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/template_css.css" media="screen" type="text/css" />
 <!-- calendar stylesheet -->
  <link rel="stylesheet" type="text/css" media="all" href="${pageContext.servletContext.contextPath}/js/calendar-win2k-cold-1.css" title="win2k-cold-1" />

  <!-- main calendar program -->
  <script type="text/javascript" src="${pageContext.servletContext.contextPath}/js/calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="${pageContext.servletContext.contextPath}/js/lang/calendar-en.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="${pageContext.servletContext.contextPath}/js/calendar-setup.js"></script>

    </head>
    <body>
<div class="container">
  <div class="header"><a href="#"><img src="${pageContext.servletContext.contextPath}/img/grlg.png" alt="Insert_logo" name="Insert_logo" width="180" height="90" id="Insert_logo" style="background: #C6D580; display:block;"></a>
    <!-- end .header --></div>
    <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0"
               class="table-wrapper">
            <tr>
                <td>
                    <p align="center">&nbsp;</p>
                    <h3>My Reminders</h3>
                    <p>manage reminders ...<br/>
                    </p>
                    <html:form action="/reminders.do" method="post">
                        <table width="29%" border="0">
                            <tr>
                                <td width="26%">Reminder date:</td>
                                <td width="74%"> <html:text styleId="dateString" property="dateString"   size="20"  />
                                    <img alt="cal"  src="${pageContext.servletContext.contextPath}/js/imgcal.gif" id="f_trigger_b" style="cursor: pointer; border: 1px solid red;" title="Date selector"
                                    onmouseover="this.style.background='red';" onmouseout="this.style.background=''" />
                                </td>
                            </tr>
                            <tr>
                                <td width="26%">Description:</td>
                                <td width="74%"> <html:text property="description"  size="60"  />
                                </td>
                            </tr>
                            <tr>
                                <td width="26%">Reminder type:</td>
                                <td width="74%">
                                    <html:select  property="typeString" >
                                        <html:option value="">–SELECT–</html:option>
                                        <html:option value="ANIVERSARY">Aniversary</html:option>
                                        <html:option value="BIRTHDAY">Birthday</html:option>
                                    </html:select>
                                </td>
                            </tr>
                             <tr>
                                <td colspan="2"><p align="center">
                                        <html:submit value="OK" />
                                &nbsp;</p></td>
                            </tr>
                        </table>
                    </html:form>
                    <div style="padding: 15px"> <html:errors />
                    </div>

                </td>
            </tr>
        </table>
  </div>
  <!-- end .container --></div>
  <div class="footer">
      <p>Copyright 2011&nbsp;TigerSoft</p>
   <!-- end .footer --></div>
  <script type="text/javascript">
    Calendar.setup({
        inputField     :    "dateString",      // id of the input field
        ifFormat       :    "%m/%d/%Y",       // format of the input field
        button         :    "f_trigger_b",   // trigger for the calendar (button ID)
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)
    });
</script>
    </body>
</html>
